package com.qf.commons.standar.vaild;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.TYPE,ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = QfConstraint.class)
public @interface QfVaild {
    String message() default "";

    //分组校验
    Class<?>[] groups() default { };

    //校验等级
    Class<? extends Payload>[] payload() default {};

    Class<? extends IQfVaild> handler();
}
